Skip to content

Conversation

@bjacob
Copy link
Contributor

@bjacob bjacob commented Jul 25, 2025

FULL_LDBG is currently called without argument; somehow, the preprocessor tolerates that when the implementation is non-empty but rejects that when the implementation is empty. Instead, let it not take an argument.

Signed-off-by: Benoit Jacob <[email protected]>
@bjacob
Copy link
Contributor Author

bjacob commented Jul 25, 2025

@joker-eph

@llvmbot llvmbot added the mlir label Jul 25, 2025
@llvmbot
Copy link
Member

llvmbot commented Jul 25, 2025

@llvm/pr-subscribers-mlir

Author: Benoit Jacob (bjacob)

Changes

FULL_LDBG is currently called without argument; somehow, the preprocessor tolerates that when the implementation is non-empty but rejects that when the implementation is empty. Instead, let it not take an argument.


Full diff: https://github.com/llvm/llvm-project/pull/150701.diff

1 Files Affected:

  • (modified) mlir/lib/Dialect/Transform/Interfaces/TransformInterfaces.cpp (+2-2)
diff --git a/mlir/lib/Dialect/Transform/Interfaces/TransformInterfaces.cpp b/mlir/lib/Dialect/Transform/Interfaces/TransformInterfaces.cpp
index 96ce980e78471..d1c36acc64062 100644
--- a/mlir/lib/Dialect/Transform/Interfaces/TransformInterfaces.cpp
+++ b/mlir/lib/Dialect/Transform/Interfaces/TransformInterfaces.cpp
@@ -25,10 +25,10 @@
 #define DEBUG_PRINT_AFTER_ALL "transform-dialect-print-top-level-after-all"
 #define DBGS() (llvm::dbgs() << "[" DEBUG_TYPE "] ")
 #ifndef NDEBUG
-#define FULL_LDBG(X)                                                           \
+#define FULL_LDBG()                                                           \
   DEBUGLOG_WITH_STREAM_AND_TYPE(llvm::dbgs(), DEBUG_TYPE_FULL)
 #else
-#define FULL_LDBG(X)
+#define FULL_LDBG()
 #endif
 
 using namespace mlir;

@github-actions
Copy link

⚠️ C/C++ code formatter, clang-format found issues in your code. ⚠️

You can test this locally with the following command:
git-clang-format --diff HEAD~1 HEAD --extensions cpp -- mlir/lib/Dialect/Transform/Interfaces/TransformInterfaces.cpp
View the diff from clang-format here.
diff --git a/mlir/lib/Dialect/Transform/Interfaces/TransformInterfaces.cpp b/mlir/lib/Dialect/Transform/Interfaces/TransformInterfaces.cpp
index d1c36acc6..07d4879ee 100644
--- a/mlir/lib/Dialect/Transform/Interfaces/TransformInterfaces.cpp
+++ b/mlir/lib/Dialect/Transform/Interfaces/TransformInterfaces.cpp
@@ -25,8 +25,7 @@
 #define DEBUG_PRINT_AFTER_ALL "transform-dialect-print-top-level-after-all"
 #define DBGS() (llvm::dbgs() << "[" DEBUG_TYPE "] ")
 #ifndef NDEBUG
-#define FULL_LDBG()                                                           \
-  DEBUGLOG_WITH_STREAM_AND_TYPE(llvm::dbgs(), DEBUG_TYPE_FULL)
+#define FULL_LDBG() DEBUGLOG_WITH_STREAM_AND_TYPE(llvm::dbgs(), DEBUG_TYPE_FULL)
 #else
 #define FULL_LDBG()
 #endif

@bjacob bjacob closed this Jul 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants